export const approveMark = {
    APPROVED: "approved",//审批通过
    RETURN_FOR_MODIFY: "returnForModify",//退回修改
    REFUSE_MOVE_IN: "refuseMoveIn"//不通过
}

export const implTypeOptions = [
    {label: "新设立", value: "0"},
    {label: "区内迁入", value: "1"},
    {label: "区外迁入", value: "2"},
    {label: "市外迁入", value: "3"}
]

export const entryTypeOptions = [
    {label: "创新区自主培训企业", value: "0"},
    {label: "校友会推荐企业", value: "1"}
]

export const entNatureOptions = [
    {label: "内资", value: "0"},
    {label: "外资", value: "1"},
    {label: "合伙企业", value: "2"},
    {label: "其他", value: "3"}
]

export const enterpriseTypeOptions = [
    {label: "有限公司", value: "0"},
    {label: "股份有限公司", value: "1"},
    {label: "合伙企业", value: "2"},
    {label: "分支机构", value: "3"},
    {label: "其他", value: "4"}
]

export const taxpayerTypeOptions = [
    {label: "小规模纳税人", value: "0"},
    {label: "一般纳税人", value: "1"}
]

export const industryMTypeOptions = [
    {label: "科学研究和技术服务业", value: "0"},
    {label: "信息传输、软件和信息技术服务业", value: "1"},
    {label: "金融业", value: "2"},
    {label: "批发和零售业", value: "3"},
    {label: "文化、体育和娱乐业", value: "4"},
    {label: "其他", value: "5"}
]

export const getLabelByValue = (options: Array<{ label: string, value: string }>, value: string): string => {
    const option = options.find(option => option.value === value);
    return option ? option.label : '';
}